Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: more intermediate output columns and input validation #105

Merged
merged 4 commits into from
Mar 4, 2020

Conversation

dmuldrew
Copy link
Collaborator

@dmuldrew dmuldrew commented Mar 3, 2020

This PR brings the capacity scaling framework up date with the latest changes.

The main changes are:
(1) code to adapt to the current format of the allowed resourced column
(2) additional columns of intermediate calculations added the next capacities dataframe
(3) input validation for capacity factors, etc.
(4) refinement of object JSON string output

@dmuldrew dmuldrew added this to the Suncadia Break milestone Mar 3, 2020
@dmuldrew dmuldrew requested a review from BainanXia March 3, 2020 19:52
@dmuldrew dmuldrew self-assigned this Mar 3, 2020
@BainanXia BainanXia self-assigned this Mar 3, 2020
@BainanXia
Copy link
Collaborator

Integration test: it generates exactly same results with the previous code. Just need some pep8 cleanings and we are good to go. Good to see the corner cases are captured specifically.

@@ -11,7 +14,8 @@ def test_create_targets_from_dataframe():
'ce_target_fraction': [.25, .4],
'total_demand': [200000, 300000],
'external_ce_historical_amount': [0, 0],
'solar_percentage': [.3, .6]}
'solar_percentage' :[.3, .6],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The space added at wrong place...

Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@dmuldrew dmuldrew merged commit d11ac8a into develop Mar 4, 2020
@dmuldrew dmuldrew deleted the capacity_planning_redux branch April 4, 2020 01:01
@ahurli ahurli mentioned this pull request Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants